Civicrm/Drupal 10 "DB Error: unknown error" on Event Registration in Test or Live Sites

I am working on getting Drupal 10 / CiviCRM working on I am close to get CiviCRM properly running but have run into an issue where event registration creates unknown database error on test and live (but works on dev).

Steps to Setup CiviCRM on Pantheon and Reproduce Error

  1. Create site, spin up and install Drupal 10 as usual
  2. Copy locally with git or “terminus local:clone SITENAME”
  3. In cloned folder Run “composer require civicrm/civicrm-{core,packages,drupal-8}” then “composer require civicrm/cli-tools”
  4. Edit the json to whitelist compiling. Under ““enable-patching”: true” add the line ““compile-whitelist”: [“civicrm/civicrm-core”, “civicrm/composer-compile-lib”]”
  5. Push your changes with “git add .” then “git commit -m ‘adding civicrm’” and “git push”
  6. Change the Pantheon Development site to SFTP
  7. On Pantheon site go to YOURDOMAIN.COM/admin/modules and enable “CiviCRM Core”. It will create the settings.civicrm.php file. Check to make sure it worked. (At this point it only works on the dev instance)
  8. Commit that file to Git on Pantheon.
  9. Pull down the code “git pull” to your local.
  10. Run "wget -O pantheon.civicrm.settings.local.php" (see:
  11. Follow instructions in pantheon.civicrm.settings.local.php to update keys and insert code in civicrm.settings.php
  12. Push code to pantheon (test by creating a CIVICRM event and registering on dev site, it works)
  13. Clone to test environment (test by creating event and registering on test site, it results in DB error)

This is when the browser, in a yellow box, displays " Sorry, due to an error, we are unable to fulfill your request at the moment. You may want to contact your administrator or service provider with more details about what action you were performing when this occurred. DB Error: unknown error"

Has anyone had success installing CiviCRM with Drupal 10 on Pantheon or encountered a similar ‘DB Error: unknown error’ during CiviCRM event registration in Drupal 10 on Pantheon?
The fact that the registration works on the dev environment but fails on the test environment, suggests a possible configuration or environmental issue. I have been trying to figure out if this can be resolved by changes to the civicrm.settings.php configuration file without luck. Any suggestions for troubleshooting or resolving this issue would be greatly appreciated.

Also posted at:

1 Like

Hey! :wave:

Welcome to the community! I am so sorry to hear you are bumping into issues, I see you also posted in our Community Slack so I am going to tag some engineers in on your thread to see if they can help troubleshoot with you.

Thanks for providing steps to reproduce – very helpful!